import Vue from 'vue';
import Vuex from 'vuex';
// 2. 导入子仓库模块
import showModal from './showModal';
import loginStatus from './loginStatus';
import showToast from './showToast';
import userInfo from './userinfo';

Vue.use(Vuex);

export default new Vuex.Store({
    state: {},
    getters: {},
    mutations: {},
    actions: {},
    modules: {
        // 3.关联子仓库模块
        showModal,
        loginStatus,
        showToast,
        userInfo,
    },
});
